'use strict';
/**
 * @name 莫凡服务端 业务层
 * @version 0.0.1
 * @author ljr
 * @Time 2020年10月21日11:06:27
 */
const Service = require('egg').Service;

const operation_log = '[morefun:操作日志]';

class demoService extends Service {

  async test(mix_nick) {
    const {
      app,
    } = this;
    const result = {};

    result.mix_nick = mix_nick;
    app.logger.info(`${operation_log}查询id为${mix_nick}的用户`);
    return result;
  }

  async testPost(user_id) {
    const {
      app,
    } = this;
    const result = {};
    result.user_id = user_id;

    app.logger.info(`${operation_log}删除了id为${user_id}的用户`);

    return result;
  }
}

module.exports = demoService;